package com.hc.dfs.activity;

import java.util.ArrayList;
import java.util.List;

import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

import com.hc.dfs.adapter.FollowAdapter;
import com.hc.dfs.activity.R;
import com.hc.dfs.entities.mobile.FollowDetail;

/** 
 * @author 王洪胜  E-mail:  
 * @version 创建时间：2013-2-19 上午8:19:05
 * 
 * 类说明：
 *
 */
public class FollowActivity extends BaseActivity {

	private ListView list;
	private List<FollowDetail> data;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.follow);
		data=new ArrayList<FollowDetail>();
		list = (ListView) findViewById(R.id.follow_list);
		for(int i=0; i<40; i++){
			FollowDetail fd = new FollowDetail();
			fd.setName("李秀芬"+i);
			fd.setContent("撒旦法的思考林连昆交流交流谁离开了了解了社交类");
			fd.setType("呈报");
			fd.setDate(null);
			fd.setFlag(i%2);
			data.add(fd);
		}
		FollowAdapter adapter = new FollowAdapter(this, data);
		list.setAdapter(adapter);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void init() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void refresh(Object... param) {
		// TODO Auto-generated method stub
		
	}

}
